home *** CD-ROM | disk | FTP | other *** search
- ##### This file is obsolete, online doc can now be derived from the original
- dpANS text files #####
-
- Dear Forth friend,
-
- when you are using a free Forth system then you often miss
- documentation and goodies like online help. With the ANS we have a
- chance to change this unfortunate situation easily.
-
- Wouldn't it be nice if you could say
-
- "HELP FILE-POSITION"
-
- and the system would respond with
-
- "FILE-POSITION ( file-id --- ud ior ) [ANS]
- `ud' is the current file position for the file identified by
- `file-id'. `ior' is 0 if no error occured otherwise it is an
- error-code >0."
-
- Unfortunately it is quite a lot of work to type all that stuff. If we
- could share this work among maybe - 10 - people, then each one of us
- has a job for one weekend or so. With your help the online help effort
- can be easily finished within one month.
-
- If you like to participate in that effort please send mail to
- duz@roxi.rz.fht-mannheim.de and tell me
-
- - the words you'd like to document. Choose one of the smaller
- word sets or an alphabetic range in the core word set. If
- you have no special preference it's just as well.
-
- - an estimation when you'd like best to do the thing.
-
- I'll try to coordinate a little.
-
- The text you write will be free software. Anybody shall be free to use
- it in his system.
-
-
- File format:
- ============
-
- ........|column 0
- v
- # this is a comment, e.g.:
- # The optional File Access word set
- # xxx@yyy.zzz.aaa <John Miller> wrote the following doc-strings
-
- : WORD-NAME ( input params --- results ) [ANS]
- whatever is neccessary to describe WORD-NAME. You can use newlines
- and at most one empty line to separate paragraphs. Don't exceed
- column 72 in case you want to print it some day.
-
- : THIS-IS-THE-NEXT-WORD ....
-
- the `:' (followed by one space of course) is just a convenience for us
- Forth-freaks. It marks the next word if it is found in column 0.
-
- There is no need to order the words.
- I wrote two little utility programs to access the help strings:
-
- helpindex [-o outfile] file1 file2 ...
- reads files in the above format. Writes an index
- to all files to the standard output or to the
- specified outfile.
-
- showhelp index word1 word2 ...
- uses the index file created by helpindex to access
- the source help files and displays the documentation
- strings to all words specified.
-
- For an example refer to the file forth-83.hlp where some words are
- documented that are non-standard extensions in one system.
-
-
- Style
- =====
-
- Of course there is already a text that precisely describes all
- ANS-Forth words, the standard. I think it would be better not to copy
- this text for two reasons:
-
- - it's copyrighted
- - some things can be expressed a little more comprehensive.
-
- On the other hand it is difficult to write anything else on ROT but:
-
- Rotate the top three stack entries. (dpANS-6 6.1.2160)
-
- I guess writing the same sentence cannot be considered a copyright
- violation.
-
- Stack comments should use the abbreviations from the dpANS-6, table
- 3.1, page 8.
-
- For the implementor wishing to use this text body it would be nice if
- the phrases "ambigous condition" and "implementation defined" would be
- used whereever the ANS uses them. Reason: these can be found easily
- with the text editor and replaced by the specification his system's
- behaviour.
-
- Suggestions for improvements are welcome.
-